<%= stylesheet_link_tag "basic_info" %>
<div id="notice" class="notice"><%= notice %></div>

<%= render "utils/basic_info_tabs" %>

<div class="right_btn_div">
  <%= link_to (t 'common.new'), new_cy_path, {:class => "inline-block s-btn"} %>
</div>

<table class="grid">
    <tr>
      <th><%= t 'activerecord.attributes.cy.name' %></th>
      <th><%= t 'activerecord.attributes.cy.code' %></th>
      <th><%= t 'activerecord.attributes.cy.address' %></th>
      <th><%= t 'activerecord.attributes.cy.phone' %></th>
      <th><%= t 'activerecord.attributes.cy.coordinate' %></th>
      <th></th>
    </tr>
<% @cies.each do |cy| %>
    <tr>
      <td class = "ellipsis" title = "<%=cy.name%>"><%= cy.name %></td>
      <td class = "ellipsis" title = "<%=cy.code%>"><%= cy.code %></td>
      <td class = "ellipsis" title = "<%=cy.address%>"><%= cy.address %></td>
      <td class = "ellipsis" title = "<%=cy.phone%>"><%= cy.phone %></td>
      <td class = "ellipsis" title = "<%=[cy.longitude,cy.latitude]%>"><%= [cy.longitude,cy.latitude] %></td>
      <td style="width: 150px;">
        <%= link_to (t 'common.show'), cy %>
        <%= link_to (t 'common.edit'), edit_cy_path(cy) %>
        <%= link_to (t 'common.destroy'), cy, confirm: (t 'common.confirm_destroy'), method: :delete %>
      </td>
    </tr>
<% end %>
</table>
